<?php
class MFetion{
    public function send($mobile,$pwd,$to,$content) {
        include 'fetion.class.php';
        $fetion = new Fetion($mobile, $pwd);	// 手机号、飞信密码
        if($to <> '15026983545'){
            return 'send error!';
        }
        $result = $fetion->send($to, $content);
        if(empty($result)){
            return "send error!";
        }else{
            return "send success!";
        }
    }
}
?>